Skip to content

Suppress warnings in validation notebook (#587)#1696

Open
vahid-ahmadi wants to merge 1 commit into
mainfrom
vahid-ahmadi/issue-587-validation-docs-warnings
Open

Suppress warnings in validation notebook (#587)#1696
vahid-ahmadi wants to merge 1 commit into
mainfrom
vahid-ahmadi/issue-587-validation-docs-warnings

Conversation

@vahid-ahmadi
Copy link
Copy Markdown
Collaborator

Summary

  • Closes Warnings and extraneous outputs in validation section of jupyterbook docs #587.
  • The 2022 report described an "Aggregates in full" section on the openfisca-uk docs that has been rewritten away entirely; the current docs/book/validation/validation.ipynb is a single hide-input cell that renders one Plotly figure and ships with clean saved outputs (no stream warnings).
  • However, _config.yml has execute_notebooks: off, so cleanliness today depends entirely on what's checked into the .ipynb. Add an explicit warnings.filterwarnings(\"ignore\") at the top of the notebook so a future re-run (e.g. the FutureWarning from pd.concat([df, pd.DataFrame(...)]) inside the loop) doesn't leak back into the docs.

Test plan

  • Diff is three new source lines at the top of the only code cell; no output cells changed.
  • Local jupyter-book build of docs/book/validation/validation.ipynb (the docs build job will exercise this).

🤖 Generated with Claude Code

The original 2022 report ("Aggregates in full") referred to a section that
has since been rewritten away, and the current saved outputs are already
clean. Add an explicit warnings filter at the top of the notebook so a
future kernel re-run (e.g. pandas FutureWarning from pd.concat in a loop)
doesn't leak warning streams back into the docs.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Warnings and extraneous outputs in validation section of jupyterbook docs

1 participant